/**
 * Created by kaqu on 05/03/15.
 */


var assetLoader = new createjs.LoadQueue();

var assetsMap = {};

function loadAssets() {
    loaderScreen = new createjs.Shape();
    loaderScreen.graphics.beginFill("DeepSkyBlue").drawCircle(100, 0, 50);
    var text = new createjs.Text("Loading, please wait...", "20px Arial", "DeepSkyBlue");
    text.x = 100;

    assetLoader.loadFile({id: "emptyField", src: "assets/fields/empty.png"});
    assetLoader.loadFile({id: "playerOneField", src: "assets/fields/playerOne.png"});
    assetLoader.loadFile({id: "playerDwoField", src: "assets/fields/playerTwo.png"});
    assetLoader.loadFile({id: "playerThreeField", src: "assets/fields/playerThree.png"});
    assetLoader.loadFile({id: "playerFourField", src: "assets/fields/playerFour.png"});


}

var loaderScreen;


function handleLoadComplete(event) {
    for (item in event.result) {
        assetsMap[item.id] = item;
    }
}